home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK2.toast / Development Kits (Disc 2) / QuickDraw GX / Programming Stuff / Sample Code / Graphics Samples / viewPort Mania ƒ / graphics shell.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-11  |  2.4 KB  |  90 lines  |  [TEXT/MPS ]

  1. /**\
  2. |**| =====================================================================
  3. |**|
  4. |**|    graphics shell.h
  5. |**|
  6. |**|    interfaces for a simple, one-window graphics shell
  7. |**|
  8. |**|    Change History:
  9. |**|        3/90    ???        New
  10. |**|        4/96    cnn        Changes made for universal headers 2.1 and
  11. |**|                        for names of GX Libraries. Also changed
  12. |**|                        #if condition which surrounds the definition
  13. |**|                        of "qd" to work with MPW 3.4.
  14. |**|
  15. |**|    ©1990-1996  Apple Computer, Inc.
  16. |**|    All rights reserved.
  17. |**|
  18. |**| =====================================================================
  19. \**/
  20.  
  21. #include <Desk.h>
  22. #include <Dialogs.h>
  23. #include <Events.h>
  24. #include <Fonts.h>
  25. #include <Windows.h>
  26. #include <Memory.h>
  27. #include <ToolUtils.h>
  28. #include <Menus.h>
  29. #include <Resources.h>
  30. #include <Quickdraw.h>
  31. #include <GestaltEqu.h>
  32. #include <CodeFragments.h>
  33.  
  34. #include <GXEnvironment.h>
  35. #include <GXGraphics.h>
  36. #include "GraphicsLibraries.h"
  37. #include <GXErrors.h>
  38. #include "FontLibrary.h"
  39.  
  40.  
  41.  
  42. /**\
  43. |**| ---------------------------------------------------------------------
  44. |**| EXTERN GLOBALS
  45. |**| ---------------------------------------------------------------------
  46. \**/
  47. /* these things are kept up-to-date by the shell and may be accessed at any time by the application. */
  48. extern WindowPtr         gWindow;
  49. extern gxShape             gWindowBoundsShape;
  50.  
  51. /* the following are expected to be initialized by the application */
  52. extern Boolean            gDebugging;
  53. extern Boolean            gGiveMeValidation;
  54. extern long                gGraphicsHeapSize;
  55.  
  56.  
  57. /**\
  58. |**| ---------------------------------------------------------------------
  59. |**| PROTOTYPES
  60. |**| ---------------------------------------------------------------------
  61. \**/
  62.  
  63. // QuickDraw GX shell.c:
  64.  
  65. void    main                    (void);
  66. void     InitToolbox                (void);
  67. void    CheckQuickDrawGX        (void);
  68. void    EventLoop                (void);
  69. void    MyDoEvent                (EventRecord *event);
  70. void    DoMouseDown                (EventRecord *event);
  71. void    SetUpGXDebuggingWorld    (Boolean GXDebuggingInstalled);
  72.  
  73. /* the following functions are supplied by the application using the shell and are called at the appropriate time. */
  74. void DoInitialization        (WindowPtr);
  75. void DoDraw                    (WindowPtr);
  76. void DoDispose                (WindowPtr);
  77. void DoClick                (gxPoint, WindowPtr);
  78. void DoIdle                    (WindowPtr);
  79.  
  80.  
  81. /**\
  82. |**| ---------------------------------------------------------------------
  83. |**| ENUMS
  84. |**| ---------------------------------------------------------------------
  85. \**/
  86. enum dlogIDs {rNoQuickDrawGXID=129};
  87.  
  88.  
  89.  
  90.